<%@ page language="java" contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript" src="${jspath}/js/classManager.js"></script>
 <!-- 我的班级  里面 班级答疑，   里面的  等待答疑   -->
	<div class="not_right" >
		<div class="not_righttitle">
			<div class="not_righttitle01">
				 <a href="teac_class.htm">班级管理</a> &nbsp;&gt;&nbsp;班级答疑</div>
			<div class="not_righttb">
				 <input id="currClassId" type="hidden" value="${classId}"/>
				<div class="exam_title"> 
					<a href="javascript:getTeacherTabContent('question', 'ofquest', 'course');">
						<c:choose>
						<c:when test="${null==tabstatus}">
							<c:set value="1" var="tabstatus" scope="page" />
						</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${tabstatus=='1'}">
								<div class="exam_title01"> 待回复问题 </div>
							</c:when>  
							<c:otherwise>
						        <div class="exam_title02"> 待回复问题 </div>        	 
						    </c:otherwise> 
					    </c:choose>
					</a> 
					<a href="javascript:getTeacherTabContent('question', 'ofquested', 'course');">
						 <c:choose>
							<c:when test="${tabstatus=='2'}">
								<div class="exam_title01"> 已回复问题 </div>
							</c:when>  
							<c:otherwise>
						        <div class="exam_title02"> 已回复问题 </div>        	 
						    </c:otherwise>
					    </c:choose>
					</a>
					
					<!--  不是 课程页面进入的话显示所有 -->
					<c:choose>
					<c:when test="${null==classId}">
	               		<a href="javascript:getTeacherTabContent('question', 'ofhot', 'course');">
		               		<c:choose>
								<c:when test="${tabstatus=='3'}">
									<div class="exam_title01">热门问题  </div>
								</c:when>  
								<c:otherwise>
							        <div class="exam_title02">热门问题 </div>        	 
							    </c:otherwise>
						    </c:choose>
						</a> 
						
						<a href="javascript:getTeacherTabContent('question', 'ofquestAll', 'course');">
								 <c:choose>
									<c:when test="${tabstatus=='4'}">
										<div class="exam_title01">全部问题  </div>
									</c:when>  
									<c:otherwise>
								        <div class="exam_title02">全部问题</div>        	 
								    </c:otherwise>
							    </c:choose>
						</a>  
	               	</c:when>
	               </c:choose>
	               <!--  <a target="_blank" href="/student/question/questionAdd">
					<div class="exam_title02" style="float:right;">
						<div class="add_img"><img src="${imgpath}/images/add0.png"/> </div>
						我要提问</div>
					</a> -->
				</div>
				
				
				
				<div class="exam_select">
					<!--  <div class="selectBox"> <a href="javascript:void(0);" id="aa">所属课程（不限）</a>
						<p> <a href="javascript:void(0)" class="current" value="所属课程">所属课程（不限）</a> <a href="javascript:void(0)" value="社会建筑">社会建筑</a> <a href="javascript:void(0)" value="">测量建筑</a> <a href="javascript:void(0)" value="变态建筑">变态建筑</a> <a href="javascript:void(0)" value="危机干预与哀伤辅导">危机干预与哀伤辅导</a> </p>
					</div>
					-->
					<select  class="selectBox" name="course" id="course">
						<option value="-1">所属课程（不限）</option>
						<c:forEach items="${courseList}" var="course">
						<c:if test="${course.courseId == selectedCourseId}">
						<option selected="selected" value="${course.courseId}">${course.courseNm }</option>
						</c:if>
						<c:if test="${course.courseId != selectedCourseId}">
						<option value="${course.courseId}">${course.courseNm }</option>
						</c:if>
						
						</c:forEach>
					</select>
					<c:choose>
						<c:when test="${tabstatus=='1'}">
							<c:set scope="page" var="searchHref" value="javascript:getTeacherTabContent('question', 'ofquest', 'course');" />
						</c:when>
						<c:when test="${tabstatus=='2'}">
							<c:set scope="page" var="searchHref" value="javascript:getTeacherTabContent('question', 'ofquested', 'course');" />
						</c:when>
						<c:when test="${tabstatus=='3'}">
							<c:set scope="page" var="searchHref" value="javascript:getTeacherTabContent('question', 'ofhot', 'course');" />
						</c:when>
						<c:when test="${tabstatus=='4'}">
							<c:set scope="page" var="searchHref" value="javascript:getTeacherTabContent('question', 'ofquestAll', 'course');" />
						</c:when>  
						<c:otherwise>
							<c:set scope="page" var="searchHref" value="#" />
					    </c:otherwise>
				    </c:choose>
					<div class="exam_selectbutt"><a href="${searchHref}">查&nbsp;&nbsp;询 </a></div>
				</div>
					
				<c:forEach items="${pageList.data}" var="questionObject">
				<div class="exam_content">
					<div class="quest_listimg"> <img src="../images/kczx_son/user02.jpg"> </div>
					<div class="exam_contlist">
						<div class="exam_contlistl"> 
							<a target="_blank" href="./question/ofanwser/${questionObject.quizId}">
								<div class="exam_contlistl01">${questionObject.content } </div>
							</a>
							<div class="exam_contlistl02">所属课程：
								 	<a href="　通过课程的ＩＤ　　，打开所属课程　　" style="color:#0A8CD2">
								 	<c:if test="${questionObject.courseName == null}">-</c:if>
								 	<c:if test="${questionObject.courseName != null}">${questionObject.courseName}</c:if>
								 	</a> 
									
									<a href=" 根据课程ID 打开新的一页，显示课程详情     ">
										<span style="margin-left:10px;color:#2F6383;">${questionObject.userName } </span>
									</a> 
									
									提问于:${questionObject.createDate}
								
									<span style="margin-left:10px;color:#999"> 浏览（${questionObject.viewCnt }）</span>
							</div>
						</div>
						<div class="quest_contlistr">
							<div class="quest_contlistr01">
								<div class="quest_contlistr02"> ${questionObject.answerCnt } </div>
								<a target="_blank" href="./question/ofanwser/${questionObject.quizId}">
								回复 </a></div>
						</div>
					</div>
				</div>
				</c:forEach>
			</div>
		</div>
		<%@ include file="./paging.jsp"%>
	</div>
	 <!-- 我的班级  里面 班级答疑，   里面的  等待答疑   -->